package com.liuhaha.subject.domain.handler.subject;

import com.liuhaha.subject.common.enums.SubjectInfoTypeEnum;
import com.liuhaha.subject.domain.entity.SubjectInfoBO;
import com.liuhaha.subject.domain.entity.SubjectOptionBO;

/**
 * @author liuhaha
 * @version 1.0
 * @date 2024-05-14 20:15
 */
public interface SubjectTypeHandler {
    /**
     * 枚举身份识别
     * @return
     */
    SubjectInfoTypeEnum getHandlerType();

    /**
     * handler 插入
     * @param subjectInfoBO
     */
    void add(SubjectInfoBO subjectInfoBO);

    SubjectOptionBO query(int subjectId);
}
